<%@ page contentType="text/html;charset=UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <title>修改页面</title>
    <link rel="stylesheet" href="${base}/asserts/css/style.css"/>
</head>
<body style="background: url(${base}/asserts/img/timeer.jpg)">
<div style="text-align: center">
    <form action="${base}/student/edit" method="post">

        <!--使用隐藏域-->
        <input type="hidden" name="id" value="${editStudent.id}"/>
        <hr>
        姓名：<input type="text" name="name" value="${editStudent.name}" required/>
        <br>
        学号：<input type="text" name="studentNumber" value="${editStudent.studentNumber}" disabled/>
        <br>
        密码：<input type="password" name="password" value="${editStudent.password}" required/>
        生日：<input type="date" name="birthday" value="${editStudent.birthday}">
        <br>
        性别：<label for="male">男:</label>
        <input type="radio" id="male" name="gender"
               <c:if test="${editStudent.gender == 'MALE'}">checked="checked"</c:if> value="MALE" required/>
        <label for="female">女：</label>
        <input type="radio" name="gender" id="female"
               <c:if test="${editStudent.gender == 'FEMALE'}">checked="checked"</c:if> value="FEMALE" required/>
        <br>
        政治面貌：<select name="polity" required>
        <option
                <c:if test="${editStudent.polity == 'PARTYMEMBER'}">selected="selected"</c:if> value="PARTYMEMBER">党员
        </option>
        <option
                <c:if test="${editStudent.polity == 'MEMBER'}">selected="selected"</c:if> value="MEMBER">团员
        </option>
        <option
                <c:if test="${editStudent.polity == 'INDEPENDENTMEMBER'}">selected="selected"</c:if>
                value="INDEPENDENTMEMBER">无党派
        </option>
        <option
                <c:if test="${editStudent.polity == 'OTHER'}">selected="selected"</c:if> value="OTHER">其他
        </option>
    </select>
        <br>
        简介：<textarea id="t1" name="brief" style='max-height: 300px; width: 500px;resize: none;'></textarea>
        <script>
            document.getElementById("t1").value = "${editStudent.brief}"
        </script>

        <%--<textarea name="brief" rows="10" cols="30">
                    </textarea>--%>
        <br>
        <input type="submit" value="确认"/>
        <input type="button" value="取消" onclick="history.back(-1)"/>
    </form>
</div>
<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</body>
</html>
